Tolgee core library
Core library of Tolgee localization toolkit. For more information about Tolgee Toolkit, visit our documentation website
toolkit.tolgee.io.
Installation
npm install @tolgee/core --save
Usage
First, create a Tolgee instance and run it.
import {Tolgee} from "@tolgee/core";
const tg = Tolgee.init({
apiKey: "your_api_key",
apiUrl: "https://app.tolgee.io",
})
tg.run();
Then, use it to translate your strings.
tg.onLangLoaded.subscribe(() => {
document.title = tg.translate("hello_world");
});
Features
- All in One localization solution for your JS application π
- Out of box in-context localization π
- Automated screenshot generation π·
- Translation management platform π
- Open-source π₯
To learn more, check Hello World example.